import 'package:flutter/material.dart';

///
class AppBarDemo extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return new Scaffold(
      appBar: new AppBar(
        title: new Text("AppBar 示例"),
        actions: <Widget>[
          new IconButton(
            icon: new Icon(Icons.search),
            tooltip: "搜索",
            onPressed: () {
              print("开始搜索");
            },
          ),
          new IconButton(
              icon: new Icon(Icons.add),
              tooltip: "添加",
              onPressed: () {
                print("开始搜索");
              })
        ],
      ),
    );
  }
}
